#ifndef STR_BUFFER_H
#define STR_BUFFER_H

typedef struct str_buffer str_buffer;

str_buffer *create_buffer(unsigned int size);
char *get_buffer_end(str_buffer *buf);
void update_buffer(str_buffer *buf);
char *get_buffer_value(str_buffer *buf);

int buffer_reserve(str_buffer *buf, unsigned int size);
int buffer_increase(str_buffer *buf, unsigned int increase_size);

#endif